]> dgit.raspbian.org Git - gnome-shell.git/commit
tools: Symlink node_modules in project root
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Oct 2025 18:12:59 +0000 (20:12 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:42:59 +0000 (14:42 +0100)
commit88686b76ad970a359c4079e71f64d11625e69620
tree875b714b569c53911fa0340886d5086dec7a1f3e
parentd5ec547572b237b6726911a2b036370eb9a74cd4
tools: Symlink node_modules in project root

NPM assumes quite strongly that it manages the project as a
whole and its package/lock files are located in the project
root.

While we somehow managed to keep the npm tooling in a subfolder,
this comes at the cost of breaking imports of additional modules.

This will become relevant when we update eslint to a supported
version, as we want to keep using the `junit` formatter in CI,
which has now been split out into a separate module.

So bite the bullet and make the node_modules folder available in
the project root.

On the plus side, having the node_modules folder in the project
root allows language servers in IDEs/editors to pick it up.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3929>
(cherry picked from commit 11a5aad53e2b462d7cac70b26515d9b7f4bb0466)
tools/run-eslint.sh